<?php get_header(); ?>
<div class="content-wrap">
	<div class="content">
		
		<?php while (have_posts()) : the_post(); ?>
		<header class="article-header">
			<h1 class="article-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
		</header>

		<?php if( dopt('d_adpost_01_b') ) echo '<div class="banner banner-post">'.dopt('d_adpost_01').'</div>'; ?>
		
		<article class="article-content">
			<?php the_content(); ?>
		</article>

		<?php endwhile;  ?>

		<footer class="article-footer">
			<?php the_tags('<div class="article-tags">继续浏览有关 ','',' 的文章</div>'); ?>
			<?php deel_share(); ?>
		</footer>

		<nav class="article-nav">
			<span class="article-nav-prev"><?php previous_post_link('上一篇 %link'); ?></span>
			<span class="article-nav-next"><?php next_post_link('%link 下一篇'); ?></span>
		</nav>

		<?php if( dopt('d_adpost_02_b') ) echo '<div class="banner banner-related">'.dopt('d_adpost_02').'</div>'; ?>

		<?php comments_template('', true); ?>

		<?php if( dopt('d_adpost_03_b') ) echo '<div class="banner banner-comment">'.dopt('d_adpost_03').'</div>'; ?>

	</div>
</div>
<?php get_sidebar(); get_footer(); ?>